Wiki

Clone wiki

KeePassVeraCryptMount / API Reference

This page lists the used application programmable interface methods of this plugin.

Windows registry

On computers which is VeraCrypt installed there exists an registry value to locate the VeraCrypt executable

#!console

\HKEY_CLASSES_ROOT\VeraCryptVolume\Shell\open\command

This plugin try to read this registry value to locate the executable (when you press the resolve button in the options dialog).

.NET File IO

  • File.Exists() for check the existence of the VeraCrypt executable.
  • DriveInfo.GetDrives() to resolve the already used drive letters.

.NET Diagnostics

  • Process.Start() to run the VeraCrypt executable.
  • ProcessStartInfo to prepare the command line arguments

KeePass API

  • PwEntry.Strings to store the mount options inside of the selected password entry.
  • PwEntry.Touch() to signalize the modification of the entry after pressing the apply button.
  • IPluginHost.CustomStrings to store the plugin options, i.e. path of the VeraCrypt executable.
  • IPluginHost.Database.Modified flag to signalize that an password entry was modified.
  • IPluginHost.MainWindow.UpdateUI() to refresh the UI state after modification of an entry.
  • IPluginHost.MainWindow.ToolsMenu for the options menu item.
  • IPluginHost.MainWindow.EntryContextMenu for the mount menu item.

Updated